package com.szrt.java.day20170113.ch04;

import java.lang.annotation.Annotation;

public class AnnotationTest {
	
	public static void main(String[] args) throws Exception {
		
		Class<?> clazz =Class.forName("com.szrt.java.day20170113.ch03.Cal");
		
		Annotation[] as =clazz.getAnnotations();
		
		System.out.println(as.length);
		
		for(Annotation a:as){
			System.out.println(a);
			
			//拿到注解之后 做申明事情.....  spring ioc
		}
		
	}

}
